<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>显示省级信息</title>
</head>
<body>
<ul>
{#    {% for area in areas %}#}
    {% for area in page.object_list %}
        <li>
            {{ area.atitle }}
        </li>
    {% endfor %}

</ul>
{% if page.has_previous %}
    <a href="show_area{{ page.previous_page_number }}">&lt;上一页</a>
{% endif %}
{% for findex in page.paginator.page_range %}
    {% if findex == page.number %}
        {{ findex }}
    {% else %}
        <a href="show_area{{ findex }}">{{ findex }}</a>
    {% endif %} 
{% endfor %}
{% if page.has_next %}
    <a href="show_area{{ page.next_page_number }}">下一页&gt;</a>
{% endif %}
</body>
</html>